package encrypt

import (
	"crypto/rand"
	"crypto/rsa"
	"fmt"
	"reflect"
)

func readme() {
	_ = `
rsa 加密教程来源于网站 https://zhuanlan.zhihu.com/p/384595092
	`
}

func RsaEncrypt(key string, iv string, stringIn string) (string, error) {
	return "", nil
}

func RsaGeneratePrivateKey() {
	privateKey, err := rsa.GenerateKey(rand.Reader, 2048)
	if err != nil {
		panic(err)
	}
	publicKey := privateKey.PublicKey
	fmt.Println(publicKey)
	fmt.Println(reflect.TypeOf(publicKey))

}
